package com.ruoyi.erecord.region.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 区域业务对象 t_region
 *
 * @author cc
 * @date 2023-04-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RegionBo extends BaseEntity {

    /**
     * id
     */
    private String id;
    //区域编码
    private String code;
    /**
     * 父级id
     */
    //    @NotBlank(message = "父级id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String parentId;

    /**
     * 名称
     */
    @NotBlank(message = "区域名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String title;

    /**
     * 父级名称
     */
    private String parentTitle;

    /**
     * 部门状态（0正常 1停用）
     */
    private String status;

    /**
     * 区域级别
     */
    //    @NotBlank(message = "区域级别不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer grade;
    //祖级列表
    private String ancestors;

}
